#include "uiattribute.h"
#include "ui_uiattribute.h"

UIattribute::UIattribute(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::UIattribute)
{
    ui->setupUi(this);
}

UIattribute::~UIattribute()
{
    delete ui;
}

void UIattribute::setAttribute(QPixmap p, QString name, QString type,QString load, QString size, bool systemFile,bool readOnly){
    ui->picture->setPixmap(p);
    ui->name->setText(name);
    ui->type->setText(type);
    ui->load->setText(load);
    ui->size->setText(size);
    ui->include->setText(systemFile?"是":"否");
    ui->readOnly->setText(readOnly?"是":"否");
}
